package pojo;

import java.util.List;

public class Page {
    private int totalCount;
    private int totalPageCount=0;
    private int pageSize=5;
    private int currage=1;
    private List list;

    public int getTotalCount() {
        return totalCount;
    }

    public void setTotalCount(int totalCount) {
      if(totalCount>0){
          this.totalCount = totalCount;
          totalPageCount=this.totalCount%this.pageSize==0?(this.totalCount/this.pageSize):(this.totalCount/this.pageSize+1);
      }
    }

    public int getTotalPageCount() {
        return totalPageCount;
    }

    public void setTotalPageCount(int totalPageCount) {
        this.totalPageCount = totalPageCount;
    }

    public int getPageSize() {
        return pageSize;
    }

    public void setPageSize(int pageSize) {
        this.pageSize = pageSize;
    }

    public int getCurrage() {
        return currage;
    }

    public void setCurrage(int currage) {
        this.currage = currage;
    }

    public List getList() {
        return list;
    }

    public void setList(List list) {
        this.list = list;
    }
}
